package com.tanhua.api.mongo;

import com.tanhua.domain.vo.UserLocationVo;

import java.util.List;

public interface UserLocationApi {
    void location(Double longitude, Double latitude, String addrStr,Long userId);

    List<UserLocationVo> findNearUser(Integer distance, Long id);

    /**
     * 根据用户id查询坐标
     * @param userId
     * @return
     */
    UserLocationVo findLocationByUserId(Long userId);
}
